# -*- coding: utf-8 -*-
"""
Created on Tue Feb 22 21:48:37 2022

@author: Administrator
"""
import pandas as pd

def showinterest(name):  
    '''
    景点详细信息展示
    '''
    res ={
        "picture":"",
        "jianjie": ""   
        }
    # 读取景点表
    scenary_title = ['sid','sname', 'area','picture','jianjie', 'jinweidu']
    scenary = pd.read_table('D:\\tmp\\goodluck\\goodluck\\luck\\fff.txt', sep=':', header=None, names=scenary_title, engine = 'python')
    scenary = scenary.filter(regex='sname|picture|jianjie')
    
    name = eval(name)
    ind = scenary.loc[scenary['sname'] == name].index[0]
    picture = scenary.iat[ind,1]
    jianjie = scenary.iat[ind,2]
    
    res["picture"] = picture
    res["jianjie"] = jianjie
    return res
            
